package com.kt.common.clazz.data1

fun main() {

    val arrayOf = arrayOf(12, 34, 5)

    //解构赋值
    var (a: Int, b: Int, v: Int) = arrayOf
//    println(a)
//    println(b)
//    println(v)

    /*var (name,age) = User("zs",89)
    println(name)
    println(age)*/

    val user = User("ls", 67)
    user.sex = "woman"
    println(user.sex)
    var (name,age) = user.copy()
    println(name)
    println(age)
}